/**
 * Usuario.java
 */

 /**
 *  AdSec: Administrador de Secundarias
 *  Copyright (C) 2009 Daniela Ramírez Chaves (dannyrch@gmail.com)
 *  Copyright (C) 2009 Leonel Salazar Valverde (leo87sv@gmail.com)
 *
 *  This file is part of AdSec.
 *  AdSec is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  AdSec is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with AdSec.  If not, see <http://www.gnu.org/licenses/>.
 */

package adsec.entidades;

import adsec.negocios.UtilidadesCapaNegocios;


public class Usuario {

    // <editor-fold defaultstate="collapsed" desc="Constantes de Nombres de Columnas">
    public final static String nombreTabla = "usuario";
    public static final String idUsuarioNC = "id_usuario";
    public static final String nombreNC = "nombre";
    public static final String passwordNC = "password";
    public static final String tipoNC = "tipo";
    public static final String idPerfilNC = "id_perfil";
    public static final String cedulaDocenteNC = "cedula_docente";
    public static final String cedulaPersonalAdmNC = "cedula_personal_adm";
    // </editor-fold>

    public final static int SIN_TIPO = 0;
    public final static int CEDULA_DOCENTE = 1;
    public final static int CEDULA_PERSONAL_ADM = 2;
    public final static int USUARIO_NUEVO = -1;
    
    // <editor-fold defaultstate="collapsed" desc="Atributos privados de la clase">
    private int idUsuario;
    private String nombre;
    private String password;
    private int tipo;
    private int idPerfil;
    private String cedulaDocente;
    private String cedulaPersonalAdm;
    // </editor-fold>
    
    public Usuario(){
        this.idUsuario = USUARIO_NUEVO;
        this.nombre = new String("");
        this.password = new String("");
        this.tipo = SIN_TIPO;
        this.idPerfil = Perfil.PERFIL_NUEVO;
        this.cedulaDocente = new String(UtilidadesCapaNegocios.CEDULA_INVALIDA);
        this.cedulaPersonalAdm = new String(UtilidadesCapaNegocios.CEDULA_INVALIDA);
    }//fin de constructor

    /**
     * @return the idUsuario
     */
    public int getIdUsuario() {
        return idUsuario;
    }

    /**
     * @param idUsuario the idUsuario to set
     */
    public void setIdUsuario(int idUsuario) {
        this.idUsuario = idUsuario;
    }

    /**
     * @return the nombre
     */
    public String getNombre() {
        return nombre;
    }

    /**
     * @param nombre the nombre to set
     */
    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the tipo
     */
    public int getTipo() {
        return tipo;
    }

    /**
     * @param tipo the tipo to set
     */
    public void setTipo(int tipo) {
        this.tipo = tipo;
    }

    /**
     * @return the idPerfil
     */
    public int getIdPerfil() {
        return idPerfil;
    }

    /**
     * @param idPerfil the idPerfil to set
     */
    public void setIdPerfil(int idPerfil) {
        this.idPerfil = idPerfil;
    }

    /**
     * @return the cedulaDocente
     */
    public String getCedulaDocente() {
        return cedulaDocente;
    }

    /**
     * @param cedulaDocente the cedulaDocente to set
     */
    public void setCedulaDocente(String cedulaDocente) {
        this.cedulaDocente = cedulaDocente;
    }

    /**
     * @return the cedulaPersonalAdm
     */
    public String getCedulaPersonalAdm() {
        return cedulaPersonalAdm;
    }

    /**
     * @param cedulaPersonalAdm the cedulaPersonalAdm to set
     */
    public void setCedulaPersonalAdm(String cedulaPersonalAdm) {
        this.cedulaPersonalAdm = cedulaPersonalAdm;
    }

}//fin de clase Usuario
